home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1993…ch: Other People's Memory / ADC Developer CD (1993-03) (''Other People's Memory'')_iso / Dev.CD Mar 93.iso / Technical Documentation / Sample Code / DTS.Lib & Samples / DTS.Draw / TreeObj2.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-10-22  |  1.1 KB  |  56 lines  |  [TEXT/MPS ]

  1. #ifndef __TREEOBJ2__
  2. #define __TREEOBJ2__
  3.  
  4. #ifndef __TREEOBJ__
  5. #include "TreeObj.h"
  6. #endif
  7.  
  8. #define NEW_EDIT          1        /* Application edit types. */
  9. #define DELETE_EDIT       2
  10. #define COPY_EDIT         3
  11. #define MOVE_EDIT         4
  12. #define SIZE_EDIT         5
  13. #define GROUP_EDIT        6
  14. #define UNGROUP_EDIT      7
  15. #define MOVEFORWARD_EDIT  8
  16. #define MOVETOFRONT_EDIT  9
  17. #define MOVEBACKWARD_EDIT 10
  18. #define MOVETOBACK_EDIT   11
  19. #define CLIPBOARD_EDIT    12
  20.  
  21.  
  22.  
  23. #define CLICKMESSAGE     128
  24. #define     CLICKSELECT      0
  25. #define     CLICKDRAG        1
  26.  
  27. #define KEYMESSAGE       129
  28.  
  29. #define SETSELECTMESSAGE 130
  30. #define     SELECTOFF        0
  31. #define     SELECTON         1
  32. #define     SELECTTOGGLE     2
  33.  
  34. #define GETSELECTMESSAGE 131
  35.  
  36. #define SIZEMESSAGE      132
  37.  
  38.  
  39.  
  40. typedef struct {
  41.     short        message;
  42.     EventRecord    localEvent;
  43.     Point        offset;
  44.     short        grabber;
  45.     short        oldFlip, newFlip;
  46. } ClickInfo;
  47.  
  48.  
  49.  
  50. TreeObjHndl    DoTreeHitTest(TreeObjHndl hndl, ClickInfo *click);
  51. void        DoTreeDraw(TreeObjHndl hndl, short drawType);
  52. void        DoTreeSelect(TreeObjHndl hndl, short selectType);
  53. long        DoTreeObjMethodClipped(TreeObjHndl hndl, short message, long data);
  54.  
  55. #endif
  56.